package com.xucranger.ojapi.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xucranger.ojapi.enity.DTO.CommonContestQueryDTO;
import com.xucranger.ojapi.enity.DTO.RankDTO;
import com.xucranger.ojapi.enity.DTO.common.PageResultDTO;
import com.xucranger.ojapi.enity.DTO.common.ResponseDTO;
import com.xucranger.ojapi.enity.VO.CommonContestVO;
import com.xucranger.ojapi.enity.VO.RankVO;
import com.xucranger.ojapi.enity.domain.Contests;
import org.springframework.stereotype.Service;


@Service
public interface CommonService {


    ResponseDTO<PageResultDTO<Contests>> getcontests(Integer pagenum,Integer pagesize);

    Boolean ifincfcontest(String contestname);

    ResponseDTO<PageResultDTO<CommonContestVO>> querystudentbycontestname(CommonContestQueryDTO queryDTO);

    ResponseDTO<PageResultDTO<Contests>> getcontestsbyid(Integer pagenum, Integer pagesize, String stuid);

    ResponseDTO<PageResultDTO<RankVO>> rank(RankDTO rankDTO);
}
